// JavaScript Document
document.write('<script src=\"/js/jquery.easing.1.3.js\"></script><script language=\"javascript\" src=\"http://swt.zoosnet.net/JS/LSJS.aspx?siteid=SWT42284635&lng=cn\"></script>');
function addSwtSections(){
	$(
''
+ '<link type="text/css" href="../css/swt_right.css" rel="stylesheet" />'
+ '<div id="swt_right">'
+ '	<div class="n_float_box_over">'
+ '		<div class="n_floar_mag">'
+ '			<ul>'
+ '				<li class="one">'
+ '					<a href="javascript:void(0)" onclick="openZoosUrl();LR_HideInvite();return false;" class="bg1">咨询</a>'
+ '				</li>'
+ '				<li class="two">'
+ '					<a href="/show/" target="_blank" class="bg2">案例</a>'
+ '				</li>'
+ '				<li id="youhui" class="three">'
+ '					<a href="javascript:void(0)" onclick="openZoosUrl();LR_HideInvite();return false;" target="_blank" class="bg3">优惠</a>'
+ '				</li>'
+ '				<li  class="four">'
+ '					<a href="javascript:void(0)" onclick="openZoosUrl();LR_HideInvite();return false;" target="_blank" class="bg4">QQ</a>'
+ '				</li>'
+ '				<li id="weixin" class="five">'
+ '					<a href="javascript:;" class="bg5">微信</a>'
+ '				</li>'
+ '				<li class="six">'
+ '					<a href="javascript:;" onclick="gotop()" target="_self" class="bg6">返回顶部</a>'
+ '				</li>'
+ '			</ul>'
+ '		</div>'
+ '	</div>'
+ '</div>'
+'<div id="divM">' 
+ '     <a id="divMatop" href="javascript:void(0)" onclick="openZoosUrl();return false;" target="_self" title="点击咨询"></a>' 
+ '     <a id="divMagb" onclick="closeM()" href="javascript:void(0)" target="_self" title="关闭"></a>' 
/*+ '     <ul>' 
+ '     <li><a id="divMa1" href="/" target="_blank" title="首页"><i></i>首页</a></li>' 
+ '     <li><a id="divMa2" href="javascript:void(0)" onclick="openZoosUrl();return false;" target="_blank" title="优惠"><i></i>优惠</a></li>' 
+ '     <li><a id="divMa3" href="/special/experts/" target="_blank" title="专家"><i></i>专家</a></li>' 
+ '     <li><a id="divMa4" href="/" target="_blank" title="微信"><i></i>微信</a></li>' 
+ '     <li><a id="divMa5" href="/hospital/route/" target="_blank" title="地址"><i></i>地址</a></li>' 
+ '     </ul>' 
+ '     <textarea id="chatcontent" name="chatcontent" onFocus="if($(this).val()==\'在此输入可直接对话\'){$(this).val(\'\');}" onBlur="if($(this).val()==\'\'){$(this).val(\'在此输入可直接对话\');}">在此输入可直接对话</textarea>'
+ ' 	<a id="qchat" onclick="openZoosUrl();LR_HideInvite();return false;" href="javascript:void(0)">发送</a>' */
+ '</div>' 
).appendTo('body');
}
addSwtSections();

host = window.location.host;
if(host=='zx.bjmylike.com'){
//google统计
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

	ga('create', 'UA-61112585-2', {'siteSpeedSampleRate': 100});
	ga('send', 'pageview');
}else if(host=='zx.mylike120.com'){
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

	ga('create', 'UA-61112585-3', {'siteSpeedSampleRate': 100});
	ga('send', 'pageview');

}
setTimeout(function(){
	if(typeof openZoosUrl == 'function') {
		mylikeOpenZoosUrl = openZoosUrl; 
		openZoosUrl = function(url, data) {
			mylikeOpenZoosUrl(url, data);
			if(typeof ga == 'function') {
				ga('send', 'event', 'shangwutong', 'click', 'zoomopen');
			}
		};	
	}
},2000);

window.onerror=function(){return true;};
document.ondragstart=function (){return false;};

var float_width = window.screen.width;
var float_height = $(window).height();
var float_left = parseInt((float_width - 222) / 2);

$(window).scroll(function() {
	var scrolltop = $(this).scrollTop();
	if (scrolltop >= 558) {
		$("#swt_right").addClass("mz_nav_on");
	} else {
		$("#swt_right").removeClass("mz_nav_on");
	}
})
function gotop() {
	$("body,html").animate({
		scrollTop: 0
	}, 500);
}

//中间弹框第一次弹出时间
setTimeout("openM()",1000);//10000
function openM(){
	$("#divM").fadeIn(1000);
}

//执行计划
function openMdivM(){
	$("#divM").fadeIn(1000);
}

function closeM(){
	setTimeout("openMdivM()",20000);//30秒后再次弹出
	$("#divM").fadeOut(1000).delay(20000).animate({'width':'480px','height': '320px','right': '50%','bottom': '50%','margin-right':'-240px','margin-bottom': '-160px'},1000);
	
}					

/*********************左侧预约专家END*************************/

//0715jly 函数改写
function openS(){
	openZoosUrl();
	LR_HideInvite();
	return false;
}
